package driver;

import java.util.ArrayList;

import vo.CourseVO;
import businesslogicservice.CourseBLService;
import businesslogicservice.ResultMessage;

public class CourseBLSevice_Driver {

	public void drive(CourseBLService courseBLService){
		ResultMessage resultMessage=courseBLService.addCourse(new CourseVO());
		if (resultMessage==ResultMessage.EXIST) {
			System.out.println("Add course success");
		}
		
		ResultMessage resultMessage2=courseBLService.updateCourse(new CourseVO(), 0003);
		if (resultMessage2==ResultMessage.EXIST) {
			System.out.println("Update course success");
		}
		
		CourseVO courseVO=courseBLService.getCourse(0003);
		if (courseVO!=null) {
			System.out.println("Get course success");
		}
		
		ArrayList<CourseVO> courseVOs=courseBLService.getDepartmentCourse(125);
		if (courseVOs!=null) {
			System.out.println("Get department course success");
		}
		
	}
	
}
